package com.ocom.common.entity.card;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 原始数据库 实体  在这里加
 */

@Data
@TableName("xf_record")
public class EntityXfRecordOrg implements Serializable {

	private static final long serialVersionUID = 3098479106755059489L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	private Long comId;
	private String deviceNo;
	private String deviceName;
	private Long pointId;
	private String pointName;
	private Long merchId;
	private String merchName;
	private Long receiptId;
	private String receiptName;
	private String receiptNo;
	private Long deptId;
	private String deptName;
	@JsonProperty("chargeBalance")
	private Long chargeBalance;
	private Long subBalance;
	@JsonProperty("pId")
	private Long pId;
	@JsonProperty("pCode")
	private String pCode;
	@JsonProperty("pName")
	private String pName;
	private String accountNo;
	private String cardNo;
	private Long discount;
	private Integer discountWay;
	private Integer payState;
	private Long consMoney;
	private Long realMoney;
	@JsonProperty("chargeMoney")
	private Long chargeMoney;
	private Long subMoney;
	private String orderNo;
	private Integer payWay;
	private String platOrderNo;
	private String channelOrderNo;
	private String monthValue;
	private String origOrderNo;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date consTime;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date payTime;
	private Long payAmount;
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Date mealDate;
	private String mealNo;
	private String payChannelNo;
	private Integer consState;
	private Integer consType;
	private Long opType;
	private Long opTypeDiff;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date createTime;
	private Long ifRefund;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date refundTime;

	@JsonProperty("adminId")
	private Integer adminId;
	private String face;

	private String adminName;

	String reserved1;
	String reserved2;
	String reserved3;

	Integer sendState;

	Integer verification;

	Integer parValue;
	Integer deduction;
	Integer voucherType;
	String voucherNo;
	Integer voucherNumber;

	Integer channelFee;
	Integer channelDiscount;
	Integer accTypeId;

	Integer subAccount;

	private Integer cancelState;
	private Integer receiptPrice;
}
